using Needle.Bus.Messages;
using System;

namespace Needle.Bus
{
    public interface IBus
    {

        string Id { get; }

        void Send(params IMessage[] args);
        
        void Send(string address, params IMessage[] messages);
        
        void StartStage(string id);
        
        void StartStage(string id, IMessageHandler handler);
        
        void StopStage(string id);

    }
}
